home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / RIncludes / QuickTimeComponents.r < prev    next >
Encoding:
Text File  |  1998-02-12  |  2.3 KB  |  97 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        QuickTimeComponents.r
  3.  
  4.      Contains:    QuickTime Interfaces.
  5.  
  6.      Version:    Technology:    QuickTime 3.0
  7.                  Release:    Universal Interfaces 3.1
  8.  
  9.      Copyright:    © 1990-1998 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18.  
  19. #ifndef __QUICKTIMECOMPONENTS_R__
  20. #define __QUICKTIMECOMPONENTS_R__
  21.  
  22. #ifndef __CONDITIONALMACROS_R__
  23. #include "ConditionalMacros.r"
  24. #endif
  25.  
  26. #define canMovieImportHandles             0x01
  27. #define canMovieImportFiles             0x02
  28. #define hasMovieImportUserInterface     0x04
  29. #define canMovieExportHandles             0x08
  30. #define canMovieExportFiles             0x10
  31. #define hasMovieExportUserInterface     0x20
  32. #define dontAutoFileMovieImport         0x40
  33. #define canMovieExportAuxDataHandle     0x80
  34. #define canMovieImportValidateHandles     0x0100
  35. #define canMovieImportValidateFile         0x0200
  36. #define dontRegisterWithEasyOpen         0x0400
  37. #define canMovieImportInPlace             0x0800
  38. #define movieImportSubTypeIsFileExtension  0x1000
  39. #define canMovieImportPartial             0x2000
  40. #define hasMovieImportMIMEList             0x4000
  41. #define canMovieExportFromProcedures     0x8000
  42. #define canMovieExportValidateMovie     0x00010000
  43. #define movieExportNeedsResourceFork     0x00020000
  44. #define canMovieImportDataReferences     0x00040000
  45. #define movieExportMustGetSourceMediaType  0x00080000
  46. #define reservedForUseByGraphicsImporters  0x00800000
  47.  
  48. #define kMimeInfoMimeTypeTag             'mime'
  49. #define kMimeInfoFileExtensionTag         'ext '
  50. #define kMimeInfoDescriptionTag         'desc'
  51.  
  52.  
  53. type 'mime' {
  54.     // 10 bytes of reserved
  55.     longint = 0;
  56.     longint = 0;
  57.     integer = 0;
  58.     // 2 bytes of lock count
  59.     integer = 0;
  60.     
  61.     // size of this atom
  62.     parentStart:
  63.     longint = ( (parentEnd - parentStart) / 8 );
  64.     
  65.     // atom type
  66.     literal longint = 'sean';
  67.     
  68.     // atom id
  69.     longint = 1;
  70.     integer = 0;
  71.     integer =  $$CountOf(AtomArray);
  72.     longint = 0;
  73.     
  74.     array AtomArray {
  75.         atomStart:
  76.         // size of this atom
  77.         longint = ((atomEnd[$$ArrayIndex(AtomArray)] - atomStart[$$ArrayIndex(AtomArray)]) / 8);
  78.         
  79.         // atom type
  80.         literal longint;
  81.         
  82.         // atom id
  83.         longint;
  84.         integer = 0;
  85.         integer = 0; // no children
  86.         longint = 0;
  87.         string;
  88.         atomEnd:
  89.         };
  90.     parentEnd:
  91.         
  92. };
  93.  
  94.  
  95. #endif /* __QUICKTIMECOMPONENTS_R__ */
  96.  
  97.